-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agent IP addresses #2056
Agent IP addresses #2056
Conversation
…e with heartbeat. Also updated frontend to include host IP addresses in agent modal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here look good to me.
@raviserota go ahead and check off the boxes in your PR description up top. You should add back in the checklist options regarding tests (you updated tests already so that's good to check off) and also documentation. I think a PR to fieldmanual adding the new attribute to the list of agent attributes in How to Build Agents would be a good place to indicate this functionality for users who want their custom agents to report host IP addresses in the GUI.
Sounds good. Thanks for the PR tips. |
@mchan143 if this looks good, can you you officially mark the review status as "approved" :) @raviserota , will this break anything if we merge it in before mitre/gocat#48 ? Is caldera still compatible with agents that don't report IP addresses? (seems like it should be...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done 👍
@wbooth , this PR allows agents to report their IP addresses to the caldera server automatically. Note: I noticed some unrelated issue with planners not loading with this branch and certain plugin commits (unsure the exact cause with my configuration), but everything worked great once I merged these changes with master's HEAD. Also, the CI failures are unrelated to the content of this PR. |
Description
Modified sandcat agent to collect all non-loopback IPv4 addresses in use on its host. (mitre/gocat#48)
Modified agent object to include a list of host IP addresses. Also added this variable to list of variables to update with heartbeat. Finally, changed the agent front-end to display the list of host IP addresses in the agent modal.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checked agent modal for sandcat agent, host IP addresses were listed. For other agents, IP address list was empty.
Ran pytest, all tests passed.
Checklist: